package sh.model;

import lombok.Data;
import sh.orm.annotation.Entity;
import sh.orm.annotation.JoinColumn;
import sh.orm.annotation.ManyToOne;

import java.math.BigDecimal;

@Data
@Entity
public class CartItem extends AbstractModel {
	private Long cartId;
	private Long productId;
	private BigDecimal price;
	private int quantity;
	private String productName;

	/** 购物车 */
	@JoinColumn(name = "id")
	@ManyToOne
	private transient Cart cart;
}
